#include "CStuInfo.h"

CStuInfo::CStuInfo()
{

}
// --------------------------------------------------------------------------------- 学生信息 表结构改变 需改的代码
bool CStuInfo::setStuInfo(int p_id, QString p_name, QString p_gender, QString p_politId, QString p_phoneNum, QString p_address, float p_gpa)
{
    id = p_id;
    name = p_name;
    gender = p_gender;
    politId = p_politId;
    phoneNum = p_phoneNum;
    address = p_address;
    gpa = p_gpa;

    return true;
}

int CStuInfo::getId() const
{
    return id;
}

void CStuInfo::setId(int value)
{
    id = value;
}

QString CStuInfo::getName() const
{
    return name;
}

void CStuInfo::setName(const QString &value)
{
    name = value;
}

QString CStuInfo::getGender() const
{
    return gender;
}

void CStuInfo::setGender(const QString &value)
{
    gender = value;
}

float CStuInfo::getGpa() const
{
    return gpa;
}

void CStuInfo::setGpa(float value)
{
    gpa = value;
}

QString CStuInfo::getPolitId() const
{
    return politId;
}

void CStuInfo::setPolitId(const QString &value)
{
    politId = value;
}

QString CStuInfo::getAddress() const
{
    return address;
}

void CStuInfo::setAddress(const QString &value)
{
    address = value;
}

QString CStuInfo::getPhoneNum() const
{
    return phoneNum;
}

void CStuInfo::setPhoneNum(const QString &value)
{
    phoneNum = value;
}
